<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>axios</title>
	</head>
	<body>
		<script>
			axios({
					method: 'post',
					url: '/user/12345',
					data: {
						firstName: 'Fred',
						lastName: 'Flintstone'
					}
				})
				.then(function(response) {
					console.log(response);
				})
				.catch(function(error) {
					console.log(error);
				});
		</script>
	</body>
</html>
